package cn.jdy.plugins.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import cn.jdy.common.bo.BaseEntry;

/***
 * @desc   合作广告-交流广告实体类
 * @author lph
 * @date   2017-03-22
 */
@Entity
public class Advertising extends BaseEntry {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;                 //广告id
	private String name;             //广告名称/合作伙伴名称
	private String imgUrl;            //交流广告图片
	private String url;              //交流广告链接/合作链接
	private String advertisingType;  //广告类别：1 合作广告，2 交流广告,3 合作广告2
	@Column(columnDefinition = "longtext")
	private String context;          //广告描述
	@ManyToOne
	@JoinColumn(name = "liveId", insertable = false, updatable = false)
	private Live live;
	private Long liveId;
	private String liveName;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getAdvertisingType() {
		return advertisingType;
	}
	public void setAdvertisingType(String advertisingType) {
		this.advertisingType = advertisingType;
	}
	public Live getLive() {
		return live;
	}
	public void setLive(Live live) {
		this.live = live;
	}
	public Long getLiveId() {
		return liveId;
	}
	public void setLiveId(Long liveId) {
		this.liveId = liveId;
	}
	public String getLiveName() {
		return liveName;
	}
	public void setLiveName(String liveName) {
		this.liveName = liveName;
	}
	public String getImgUrl() {
		return imgUrl;
	}
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}

	
}
